package com.sven;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class DemoApplication {

    public static void main(String[] args) {
        //第一种方式
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath*:/META-INF/spring/provider.xml");
        context.start();

        try {
            System.in.read(); //阻塞Main线程 按任意键退出
        } catch (IOException e) {
            e.printStackTrace();
        }

        //第二种方式
        // Main.main(args);
    }

}
